package com.example.sunmiv1.entity;

import java.util.ArrayList;
import java.util.List;

public class StoreWarehouseInfo {

    /**
     * status : 1
     * warehouseList : [{"id":"7","name":"111"}]
     * supplierList : [{"id":"1217","supplier_name":"志剛食品55"},{"id":"1216","supplier_name":"111"},{"id":"1133","supplier_name":"商用商家自動生成"},{"id":"1054","supplier_name":"商用商家自動生成"},{"id":"975","supplier_name":"商用商家自動生成"},{"id":"897","supplier_name":"商用商家自動生成"},{"id":"819","supplier_name":"商用商家自動生成"},{"id":"743","supplier_name":"商用商家自動生成"}]
     */

    private int status;
    private List<WarehouseListBean> warehouseList;
    private List<SupplierListBean> supplierList;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<WarehouseListBean> getWarehouseList() {
        if (warehouseList == null) {
            return new ArrayList<>();
        }
        return warehouseList;
    }

    public void setWarehouseList(List<WarehouseListBean> warehouseList) {
        this.warehouseList = warehouseList;
    }

    public List<SupplierListBean> getSupplierList() {
        if (supplierList == null) {
            return new ArrayList<>();
        }
        return supplierList;
    }

    public void setSupplierList(List<SupplierListBean> supplierList) {
        this.supplierList = supplierList;
    }

    public static class WarehouseListBean {
        /**
         * id : 7
         * name : 111
         */

        private String id;
        private String name;

        public WarehouseListBean(String id, String name) {
            this.id = id;
            this.name = name;
        }

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name == null ? "" : name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static class SupplierListBean {
        /**
         * id : 1217
         * supplier_name : 志剛食品55
         */

        private String id;
        private String supplier_name;

        public SupplierListBean(String id, String supplier_name) {
            this.id = id;
            this.supplier_name = supplier_name;
        }

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getSupplier_name() {
            return supplier_name == null ? "" : supplier_name;
        }

        public void setSupplier_name(String supplier_name) {
            this.supplier_name = supplier_name;
        }
    }
}
